how to open a link in javascript